var html = document.getElementsByTagName('html')[0];
window.onresize = init;
function init() {
	var hw = html.offsetWidth;
	var n = hw > 640 ? 24 : 24 / 640 * hw;
	html.style.fontSize = n + "px";
}init();
function inloading(arr, oldbox) {
	var a = 0;
	for(var i = 0;i < arr.length; i++){
		var r = new Image;
		r.src= "images/"+ arr[i],
		r.onload = function(){
			a++;
			if (a >= arr.length - 1) {
				oldbox.style.display="none";
				$(".page1 .p1_text1").addClass('bounceInLeft show1');
            	$(".page1 .p1_text2").addClass('bounceInRight show1');
			};
		};
		r.onerror = function(){
			oldbox.innerHTML="网络太慢了~~,加载失败";
			}
		}
	};